package net.pierrerenaudin.blobbyvolley.client;

public class Player {

	public static final int LEFT_PLAYER = 0;
	public static final int RIGHT_PLAYER = 1;
	
	public static final double width = 75.0;
	public static final double height = 89.0;
	
	public int side;
	
	public double state;
	public double animationSpeed;
	public int score;
	public int squish;
	public int hitCount;
	
	public Vector velocity;
	public Vector position;
	
	private boolean batHit;
	private boolean serving;

	public Player(int side){
		velocity = new Vector(0.0,0.0);
		position = new Vector(0.0,0.0);
		this.side = side;
	}
	
	public void setServing(boolean serving) {
		this.serving = serving;
	}

	public boolean isServing() {
		return serving;
	}

	public void setBatHit(boolean batHit) {
		this.batHit = batHit;
	}

	public boolean isBatHit() {
		return batHit;
	}
		
	public void addVector(Vector v){
		position.x += v.x;
		position.y += v.y;
	}
	
}
